I am not understanding the logic of the question, what to code ? Could you pls help me understanding the question ?