Hughes Systique interview question

some puzzles