Cobblestone Energy Interview Question

math and logic skill test.