Mavenhive Interview Search Problem