solved spoj solutions