Luciq interview question

just problem solving for the start