pulse by solutions Interview Question

Question related to programming and problem solving. Some basic math question.