Schibsted Interview Question

implement a couple of functions for a RAG skeleton in python