Longest character streak
Your task
A chat quality tool flags key-smash by finding the character behind the longest streak. Given a non-empty message, return the character of the longest run of consecutive identical characters, as a one-character string. If several runs tie for longest, return the one that appears first. For example, 'heyyy nooo' returns 'y' (its run of 3 starts before the 'o' run of 3).
Examples
longest_run_char(message: str) -> strExample 1
Input
longest_run_char("heyyy nooo")Output
"y"