RevX interview question

Convert negative no in binary and print it