pather interview problem solution