Timed Vote from chat input

hi guys , im working right now on an little twitch project and need some form of timed vote/poll event …

the goal is to give the chat some time to write some keywords and then get the most voted/written word as output when the time is out .


this is how far i got … i get the value of the most voted word but how can i get the information what array it was …

im rly new to programming and ue4 so maybe this is a totall wrong way to achieve this … maybe someone with some knowlege can help me out =)

if you need more information pls just ask

i solved it by myself . maybe its not that efficient but it works . so here is what i got … maybe it will help someone one day =)

if someone have ideas to improve that pls do not hasitate to spread your knowledge=)