WD Interview Question

C Program to solve a puzzle.