Capgemini interview question

get bytes method