HCLTech Interview Question

Program: sort the map based on the key using java8