Implement minimal RLE encode/decode with max run K | Liftoff Interview Question