Oracle interview question

Convert Binary to decimal (coding question)