Cority Software Interview Question

Just simple mathmatic problem