Epic Interview Question

write code for colorful number.