Netstratum interview question

leap year, unique characters without inbuilt functions