practicing a lot on any online judges like HackerRank, LeetCode, and so on. Usually, the challenge is about searching, sorting, string manipulation, dynamic programming, and some math like set theory. So, please learn and practice a lot in these topics!