Indeed interview question

Question involving a Map and creating a private class.