Revert "Bug fix: nearest_larger solution failed in some cases"

This reverts commit f8d337ee82bee7a724b34596ac657bb8e175152d.