The biggest hint is that building the binary string should work from right to left, because the rightmost bit is always the ones column, while the leftmost bit's value changes depending on how many digits the numeral has.
The following exercises are hints; use as many or few as you need.
Remember, the input to your block is a number, so you do arithmetic on it; the value reported by your block is a text string, so you need string operators (like join
) to make it.