Write a program that takes in the name of a file (which may or may not exist) and returns its extension as a string

15:57
12
6 days ago
Compilation from my collection