Pergunta de entrevista da empresa Deloitte

1) Given an integer, write a code to display its binary form. 2) Given an array with negative and positive numbers, modify the array in such a way that positive and negative elements appears alternatively starting with a positive element. The order of elements should be preserved.