That would required a custom query using WP_Query class. https://codex.wordpress.org/Class_Reference/WP_Query
Sorry we do not support custom coding. Please kindly hire a developer to assist you.
However, you could built a homepage using Theme4press core plugin’s recent_posts shortcode, which supports exclude category, but it will only show a fixed number of posts.