Adevinta interview question

Define Singleton pattern, do an algorithm to search a word in a text, SOLID principles