Allegion interview question

Write a program to find the Max time combination from the given integer