i am trying to solve this question but not getting the idea to solve ,could you guys help with this one: