Added mock interview question

solved the dictionary question in a new .java file