Ebury Interview Question

A problem which has several way of solving