Luxoft interview question

Problem solving questions with some hints.