Epic Interview Question

Based on strings