Toptal interview question

convert seconds to string formatted (2w2d, 4m2s, etc)