Luxoft Interview Question

Problem solving questions with some hints.