Lots of practice in leetcode and Cracking the coding interview book should be enough for cracking those questions, Strong fluency in Data Structures & Algorithms and of course strong programming intuition and logic thinking skills which goes without saying needed to crack them.
Sigiloso
The key in generic questions like this, is to make sure to cover the fundamentals. There's usually a back-and-forth with the interviewer. Might be worth doing a mock interview with one of the Google Site Reliability Engineer experts on Prepfully? Really helps to get some real-world practice and guidance. prepfully.com/practice-interviews