Amazon interview question

Code implicit casting without the built in function