Given a non-negative integer n, return its binary representation as a string (without leading zeros; 0 maps to "0"). A stack collects the remainders of repeated division by 2. The input is JSON {n}.
Input: JSON {n}.
Output: String — the binary representation.
Input: {"n":10}
Output: 1010
Explanation: 10 in binary.Input: {"n":0}
Output: 0
Explanation: Zero.Input: {"n":255}
Output: 11111111
Explanation: Eight ones.0<=n<=10^9