HCLTech interview question

Program: sort the map based on the key using java8