MobiTrail interview question

finalised