solution ro partition number task