CloudEndure interview question

Convert char to int