Microsoft Interview Question

They asked for an algorithm