Whatfix Interview Question

Simple pseudo programming.