def rotate_ccw(puzzle):
    """Rotate the puzzle 90 degrees counter-clockwise"""

    result = []
    for col in reversed(range(4)):
        temp = []
        for row in range(4):
            temp.append(puzzle[row][col])
        result.append(temp)
    return result