Pregunta de entrevista de Ripple

Two leetcode medium questions and background discussion