Philips Interview Question

Operations on different data types