Microsoft | Phone screen | Sort by Characters Frequency

Anonymous User
246
Jan 27, 2022
Jan 27, 2022

Level : SDE 64

Reorder the given string based on frequency of characters: Do not use macros

Given: "character"
output:"ccaarrhte"
aslo : "aarrcceth", "rrccaateh", ....

Location: Remote

Comments (1)