Clutter Interview Question

3 questions, first two were basic string, object and array manipulation. Last one was a spin off of Djikstras...