Infosys Interview Question

Three Coding question related to maths and graph