Robosoft Technologies interview question

program to count non repeating digit. program to find the time between two times given.