Bending Spoons interview question

signed nda so cannot provide, basic statistics and logic