[Ruby] find fitting stocks