Philips interview question

Operations on different data types